package com.kws.merchant.domain;


import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.time.LocalDateTime;
import java.util.Date;
import java.io.Serializable;

import com.fasterxml.jackson.annotation.JsonFormat;

/**
 * 规格信息表(Specification)表实体类
 *
 * @author yxy
 * @since 2024-10-22 14:57:55
 */
@Data
@ApiModel("规格信息表")
@TableName(value = "tb_specification")
public class Specification extends Model<Specification> implements Serializable {
    private static final long serialVersionUID = -73945903309988819L;

    @TableId(type = IdType.AUTO)
    @ApiModelProperty("规格ID")
    private Long id;

    @ApiModelProperty("颜色")
    private String color;

    @TableField(fill = FieldFill.INSERT)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GTM+8")
    @ApiModelProperty("创建时间")
    private Date createTime;

    @TableField(fill = FieldFill.INSERT_UPDATE)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GTM+8")
    @ApiModelProperty("修改时间")
    private Date updateTime;

    @ApiModelProperty("规格型号")
    private String specificationModel;

    @ApiModelProperty("商品ID")
    private Long goodsId;

    @ApiModelProperty("商品类型(0设备 1服务)")
    private String type;

    @ApiModelProperty("规格图片")
    private String img;

    @ApiModelProperty("规格名称")
    private String name;
}
